import 'package:flutter/material.dart';

class statefulcomp extends StatefulWidget {
  const statefulcomp({super.key, required this.usernames});
  final String usernames;

  @override
  State<statefulcomp> createState() => _statefulcompState();
}

class _statefulcompState extends State<statefulcomp> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          Text('我是有状态组件，我喜欢的歌曲为:${widget.usernames}'),
        ],
      ),
    );
  }
}
